Optimal. Leaf size=445 \[ \frac {(a-b) \sqrt {a+b} \left (2 a^2-b^2\right ) \cot (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d}-\frac {\sqrt {a+b} \left (2 a^2-6 a b-b^2\right ) \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{d}-\frac {5 a b \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{b};\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{d}+\frac {2 a^2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}-\frac {\left (2 a^2-b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.66, antiderivative size = 445, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {2871, 3140,
3132, 2888, 3077, 2895, 3073} \begin {gather*} -\frac {\sqrt {a+b} \left (2 a^2-6 a b-b^2\right ) \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{d}+\frac {(a-b) \sqrt {a+b} \left (2 a^2-b^2\right ) \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a d}-\frac {\left (2 a^2-b^2\right ) \sin (c+d x) \sqrt {a+b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}}+\frac {2 a^2 \sin (c+d x) \sqrt {a+b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}}-\frac {5 a b \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{b};\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2871
Rule 2888
Rule 2895
Rule 3073
Rule 3077
Rule 3132
Rule 3140
Rubi steps
\begin {align*} \int \frac {(a+b \cos (c+d x))^{5/2}}{\cos ^{\frac {3}{2}}(c+d x)} \, dx &=\frac {2 a^2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+2 \int \frac {\frac {3 a^2 b}{2}-\frac {1}{2} a \left (a^2-3 b^2\right ) \cos (c+d x)-\frac {1}{2} b \left (2 a^2-b^2\right ) \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {2 a^2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}-\frac {\left (2 a^2-b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {\int \frac {\frac {1}{2} a b \left (2 a^2-b^2\right )+3 a^2 b^2 \cos (c+d x)+\frac {5}{2} a b^3 \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{b}\\ &=\frac {2 a^2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}-\frac {\left (2 a^2-b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {\int \frac {\frac {1}{2} a b \left (2 a^2-b^2\right )+3 a^2 b^2 \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{b}+\frac {1}{2} \left (5 a b^2\right ) \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}} \, dx\\ &=-\frac {5 a b \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{d}+\frac {2 a^2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}-\frac {\left (2 a^2-b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {1}{2} \left (a \left (2 a^2-b^2\right )\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx-\frac {1}{2} \left (a \left (2 a^2-6 a b-b^2\right )\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {(a-b) \sqrt {a+b} \left (2 a^2-b^2\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d}-\frac {\sqrt {a+b} \left (2 a^2-6 a b-b^2\right ) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{d}-\frac {5 a b \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{d}+\frac {2 a^2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}-\frac {\left (2 a^2-b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 18.18, size = 1185, normalized size = 2.66 \begin {gather*} \frac {2 a^2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {\frac {4 a \left (-4 a^2 b-b^3\right ) \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{(a+b) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}+4 a \left (2 a^3-6 a b^2\right ) \left (\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{(a+b) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}-\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) \Pi \left (-\frac {a}{b};\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{b \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}\right )-2 \left (2 a^2 b-b^3\right ) \left (\frac {i \cos \left (\frac {1}{2} (c+d x)\right ) \sqrt {a+b \cos (c+d x)} E\left (i \sinh ^{-1}\left (\frac {\sin \left (\frac {1}{2} (c+d x)\right )}{\sqrt {\cos (c+d x)}}\right )|-\frac {2 a}{-a-b}\right ) \sec (c+d x)}{b \sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)} \sqrt {\frac {(a+b \cos (c+d x)) \sec (c+d x)}{a+b}}}+\frac {2 a \left (\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{(a+b) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}-\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) \Pi \left (-\frac {a}{b};\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{b \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}\right )}{b}+\frac {\sqrt {a+b \cos (c+d x)} \sin (c+d x)}{b \sqrt {\cos (c+d x)}}\right )}{2 d} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1622\) vs.
\(2(413)=826\).
time = 0.24, size = 1623, normalized size = 3.65
method | result | size |
default | \(\text {Expression too large to display}\) | \(1623\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{5/2}}{{\cos \left (c+d\,x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________